package com.mode.template.method;

/**
 * @Description:
 * @Author: zyf
 * @Time: 2020/9/27 13:32
 */
public abstract class AbstractLife {

    public final void cycleLife(){
        birth();
        illness();
        death();
    }

    protected abstract void birth();

    protected abstract void death();

    protected void illness(){
        System.out.println("我没生病哦");
    }

}
